Bug fixes and improvements

* Fix #11
* Fix #13
* Add new JSON-based config file
* Store config and log at `%AppData%\Triangle717\Blocks` on Windows, `~` on all other platforms
* Write more docstrings
* Small bug fixes and other small things