cleaned crud out of the SimpleApp object.
added some house cleaning bits to cql.