reg-url: move main code inside a main() function
add shorter usage synopses from man pages