Cleaned up header. Removed explicit synthesis. Removed dead log statements. Added singleton interface. Added torch state enum.