Reorganized directory structure to src, doc, lib, and tests directories