Add debug mode and some style changes. Fixes #87.