* Rewrote LibGroup to use api instead of parsing document * apply suggestions * quick fixes * change preferences variable to functions * Make getToken sync * safe & load token * return new token when refreshing