-fixed bugs and added vis