Fixed some example mistakes

Added missed semicolons and fixed wrong callings of functions