Clean up and add comments to wrappers/ncurses