add debug() macro and status, rename _error_helper() to eprintf()

See #3.
add assertions and error messages in draw.c

See #3.
add assertions and error messages in entity.c

See #3.
add error messages in module.c
add error messages in particle.c
add error messages in port.c