readLines() now clears vertices at start; moved braces; commented test code