updated echo function
numerous changes
makefile updated