added newlines to the end of files
renamed htonll to avoid conflicts