added open and close connection models
deleted some comments
made formatting changes
made appropriate style edits
changed category being called