move private stuff into lib
tidy
update tests
refactor opening
4.0.0
strengthen tests
split out problematic test
fix bugs
4.0.1