add github flavour/fix code samples