Added some more comments/documentation