TESTS, MAKEFILE AND UPGRADED FORMATTED IO

- added tests
- added makefile (doesn't work)
- fscanf i fprintf now uses less syscalls