Big changes - changed structure of the project

Added headers to all c files, changed structure of the project, changed
all filles.