Code cleaning. Introducing more general packages for util classes. JavaDocs and unit tests added to util classes.