- print method added
- line number cannot be negative
- std::cerr used for errors instead of std::cout
- memcpy usage fixed