refactor doc.ejs and include class methods and properties in sidebar