Configuration module finished

It is working right know, maybe it could be more reliable.