added checkIfCommon, checkComplexity, and checkLength methods; fixing bugs