fixed bug that make the prgram not handle right the endline
added visual confirmation of process running