- The "count" variable made the code more prone to errors, so I removed and replaced it with another "getSize()" function.
- The value of "next" was initialized to null.
- Major improvements of code were given to "insertNth()" and "deleteHead()" functions for efficiency.
- A new function "deleteNth()" was defined, increasing the usefulness of the program.