More documentation

* Troubleshooting
* Completed the introduction
* Some cleanup (unused code, code comments)