Fixing Structure and Function

Moved many files in app directory and added a run file.