Refactored (a) data loading functions and (b) lookup into "lib" directory. Also added status tool.