Add format
functions based on prettier
#597
Merged
format
functions based on prettier
#597