Some API changes and updated version to 0.0.4.
Updated docs and some refactoring.