Huge refactor/mod by source from other project.

- 0.3.0 release notes will be added