- print method added
- line number can not be negative
- std::cerr used for errors output