Code cleanup.
[PLINK-181][PLINK-100] - Javadocs, illegal arguments checks and exception messages.