fixed bug in locked out check: .equals() not == for strings. also added comments for Ben.