Fixed issues. Assigned source dirs to $BASE_CODE_DIR.