fixed some bugs that caused compile issues
added more commands, refactored old functions, more documentation and examples