Improved documentation and fixed FindBugs errors.