Renamed from muscle-alignment. Also standardized variable options, and more heavily commented code to make it easier to understand.