Changed compiler settings, cleaned up code.