split up m4 macros to make md files less scary; update readme