cleaned checkfor, change one check to use the function, added a couple comments
comments