update residuals documentation
add residuals_plot testing function and re-organize R files to make easier to source the test xpdlb while building the package