Added comments, finished documentation, close #211