major new features, read+write+sync_write implemented

also iadded word functions
better error handling
check for correct incomming parameter count
debug handling improved