cleaned up types for compatibility on windows build, greatly optimized
pendulum system class