remove trailing CR from fgetline
add ' and ! to allowed identifier characters
Fix sockets and use correct address family
add repr function