Add comments.
Add generateRandomSalt static method.