minor format changes. removed extra lines.
added reqire yaml
added a method to save the file into a yaml file
minor format changes.