add comments and minor fixes to static compile branch