started coding. not sure about file structure

much to be done. see main.c