adding scoreboard command
some coding style fixes
more output, return status on error