check for source loading errors
added module index file for loading in node.js
updated build script and added to npm's pre-publish
organized API.
better builder script.
better doc generator.