Move config to sample

Add comments