added comments, improved behavior of views, added extern apps in file