started working on .c files; added new functions; created test file