moving parse counter from int to size_t
making variable declaration more ansi comformant
correcting handling of test_display (displaying error will exit(1))