Tests, new posts and fixes

Resolves #29, #19 and #18 as well as a few other minor things.