rewriting code before appending to fix formatting
smart append information in readme