Add some documentation
Fix some possible NPEs (thanks IDEA!)
Fix a possible bug with string comparison
Get rid of some redundant initializations
Fix some redundant declarations
Fix some data flow issues in the build script
Fix an assignment issue
Fix some various stuff
Make profiling configurable
Make benchmarking configurable
Make regex module public