fixes to app framework
doc fixes
implemented syntax highlighting (and added some stubs)