Add reference configuration, change classes to take data from config, add documentation