changed directory structure and revision and reviewed coding