Fix bg and front color differentiation on state, update parser rules
compile and update examples