fixing anacrusis and offset issues for swing
fixing indentation and prev
added tests for anacrusis
Merge pull request #1049 from shredpub/27846-bettersolution

Fixing 27841 and 27846