code cleanup for R CMD check; bump version to 1.0