change makefile to build firmware with xcode
small bug fixes
small refactoring
implement ascii output for read commands
small changes