Formatting code, checking for correct hanoi command

Added remove line numeration feature and tr() function. Added check command syntax and distinguish commands feature.