Fix access of yaml config
Add config saving