Connection update.

Constructor should now create a proper connection.
Added new enums.