add udp example
fix indentation
add example makefile that automatically generates dependencies