removed old test scripts. updated readme with new usage examples. converted main function to use a node callback convention.