Fixed several bugs, program is functional, needs lots of work.