Fix bugs in docs and exmaple.moon