bug fixes, program now operational