started cleaning up code. writing a better connection close that will allow for more functions