Rework mainpackages. Remove localtime. Update docs