fixed errors in advanced usage, added license