added comments and fixed view files