vjr version 0.47, minor refactoring, bug fixes