complete code revamp for 1.0.0

All code revamped and stabilized for version 1.0.0 from 0.1.0