removed iq mode, added password input, shortened args, code into functions