add xbox controller support
fix some things clang complained about
fix crashing relating to printing