refactor class method templates and update readme