updated code comments
changed _store to store for ease of access to db functionality.
minor rearranging of variable list
minor code comment tweaks
added validation error
added database error
tweaked event msg structure. Added parsing error
added error events and console.logging of errors