Fixed whitespaces; updated UDP code