added build.js - added for optimization
fixed random message function
added notification event handling and acknowledement