upd makefile & func
adding some code
adding testing app