Fixed some methods and added more comments.