src/vis: fixed up code style and comments