fixing some bugs
made plotting a lib-func
adjusting git status