Added basic documentation and fixed docblocks.
Increased version number to 0.4 for next release.