fixed some init bugs found with XCode
added prototype for PrintToScreen(...)
updated project, fixes for example bot