Added required comments, refactored ConsolePlatform.