r script working - need to implement cli
fixed some bugs, and rewrote for readability
gitignore