Improved binary compiler by adding heredocs and fixing some bugs