new Popen timeout, changed around functions
Added run_command function to easily utilize timeout function, all returncode values and exception handling is processed by function calling it. Added simple regex function to return match of regex pattern.
Fixed most functions to be independant of each other, and match there name more accurately.