Improved comments, added markdown line highlightin, refactoring, fixes.