Bug fixing, versioning

Adding versions to files,
Adding required lock to add events to queue