moved tests and updated docs
edited NAMESPACE as per new CRAN policy