Add docs for custom class (fixed #36)