Add report functions
Move config
Add legend