bug fixes in angle calculation code and improved tools for plotting 3d atom sets