adjusted format of code blocks + some typos