Improving memory usage and missing values handling
Removing leftover debug code