Implemented joinAtoms() and joinAtomsArray(). Closes #10.