views corrected and api docs