Fixed small formatting issue
added error for repeated outputs