Rewrite: Fix 3 open bugs, repair readme syntax, consistent whitespace usage

* Fixed issue #1, #2 and #3
* Repaired broken Markdown syntax in README.md
* Made whitespace usage more consistent (certain blocks were incorrectly indented and closed in another indention level etc.)