Fixed tests
Various fixes
Fixied initial data bug
Fixed regression
fixed doc
Merge branch 'bugfixes' into develop