main class accepts an optional token
dist
optional token sets base url
dist
fix when receiving token in constructor
process received token
version upgraded to 0.1.8