Cleaned up code.  Reconnection should now work properly.
Added logs to gitignore