Formatting
Improve debugging, printing and cache more things
Fixes #57.2 and also 3