fix formatting status icons
added some more functions
added some tests and modifications to support them
added codegen test
fixed jshint