main structure redone to comply with erlang standards. makefile updated and Emakefile created