refactoring
slight rearrangement of atc function
helper functions refactor
fix text method
fix examples