Fixed a bug where negative integers could not be declared. Fixed an off-by-one when the first line was invalid that would cause a segfault.