Explicitly includes string history in the muscle config (for energy spent calculations). String history is set to 'true' by default (records)
Reorganized sine wave code