added logical expressions to grammar, improved readme, reganized publishing of variables