JavaDoc and parameter validation for Scrypt.

JavaDoc, parameter validation and tests covering parameter validation for Scrypt