Cleaned up main app. Almost ready to start encoding.