Fix to make function a generator.
changed swig file extension to 'swig'.
Create app/view/ directory.