Bug fix in InputBuffer. Other improvements in InputCommand. Created tests for inputBuffer. #35