Now using a proper commonjs export method. Clarified docs in some areas.