more functions
preparing for next function
prepared to interface auth functions
more on auth functions preparation
misc fixes and successful run of demo example