Updated code and README to include check parameter and better use of Guava