Adds variable assigment examples

Also reformats code for whitespace etc.