making relevant routines private. Fixes #26.