add basic http auth
get rid of spark variable, make publish string use ints, public methods use camelcasing