Fixed some minor bugs. Finished improving sample app logger.