Comment out the not working reconfigure panel
Rename variables with clearer names and cleanup code
Fix bugs in angle calculation and use Euler angles