added comments, moved documentation into the wiki