added text selecting for atoms and cleaned up some stuff