got rid of .swp files, and added display method, fixed errors