fixed file read problem by switching from formatted reads to using strtok (closes #5)