as CRAN issue fixes

issues: #49, #47, #46, #45