Moved to PIP directory structure, added some C code