generate spec: remove extra newline character
remove @author
extract base class for named element intentions
generate spec: make the intention available only at function head