Added tests, updated README and added generateSalt method