added autorenew, autoapprove, and connectivity checking features (still need testing); cleaned up some misc code