Cleaned up some code, and added a few small optimizations to the stack.
Merge branch 'master' of https://github.com/iamtommo/bastard