Fixed handling invalid options and added doc comments to Console.php