made resulting c file more generic, formatting for ub_lib
is now optional (via comments)