Major refactoring and re-architecting. Version 0.2.0.