Create a basis folder and extract all related functions from the single scripts. Also unify the atom class.