added documentation, fixed imports on view base class