Add modelines for vim in all files.
Minor refactoring
Remove mention of Socket functions from README