added exception for invalid inputs as well as single line block comment handling