Changed some things

Added a second constructor for the SenderThread Class. Added auth
handling in MainThread, and did some other things in the main class