support more than one parameter in attrs
move macros to hrl file
remove badly specified and unneeded op precedence
support attrs with no params and result
use seq_items in export