adds asserts to pd

 - checks all inputs
 - adds na checking for plotting functions
 - updated roxygen2