Realm updated

Realm uses the log system
Realm now has a configuration file
Restructured realm