fixed memory errors and added asserts again
really fixed it now
made two more integration tests work
updated example to work with data that makes sense
Merge branch 'bugsprint'