Added some documentation/comments