Reformat internal headers in ramsurflib.c

Reformat most of the function headers for easier readibility and turn
possible parameters into const. Add few indications about key parameters
when possible.