pop, append, prepend and insert methods added. some minor bugs fixed