Added some comments and stuff.