Various fixes (see description)

Added how-to-use in /beta/index.html
Better buildscript
Added some debugging.