improved documentation, cleanup, npm version 1.0.2