Added some new functions to List class, fixed some errors