added functionality to rolevalidator class to determine if a acceptable key was submitted with tests, also added comments to code