added comments to connection, determineDay and DetermineSimilar. Added some code which determines if a 30 min time is present or not to choose what query is executed. [Needs testing to see if it resolves issue: #10 ]