reorganising, documenting and cleaning up of make file