Calamine v4 now working

refactored to be faster, use less memory, perform fewer operations, be
more organized, easier to refactor later, bug fixes, better metrics,
etc.