Updated examples and cli utilities.
Updated application classes and cleaned up debugging code.