Added support for dependencies to the Makefile.
Removed useless modules from code.