Refactor is structurally complete. All functionality moved into functions, ncdf4 dependency has been seperated pretty completely.