Tidied up test, readme, and some others for npm publication.