reworked the atomic package and added javadocs