Moved renamed cv6 to real. Moved functions to their own package.