fix for offset bug
formatting
change from using add to insert and cleaning up any possible duplicates
Merge pull request #160 from bradvin/master

fixes for Migration issues #156