v0.7.8

Major refactoring