fixed documentation errors, updated demos