Updated code blocks and demo page