renamed start and end transaction to move away from database terminology
removed disused iCloud integration
removed disused iCloud code
updated formatting and comments