add AC_PROG for mkdir_p b/c we're fancy
comment spelling fix
add newline to ignore
check for null returned from malloc ; style changes
off by one fix
whitespace fixes