updated example
added websocket example and changed the create interface to accurately handle time inaccurately...