changed directory structure for cross-code, added comments