Added addconnection and remove connection, added some sanitizing
Finished addconnection and removedconnection