cleanup of code and fix bug with sending commands to gnu screens