updated formatting and added serve documentation