Changed some small things, added comments.