started refactoring (chapter 1 so far)

- all lua scripts now have a shebang (#!)
- the exercise wording is replicated in the
  solution files for reference
- where applicable, a text describing the
  solution is added for exercises
added solution to exercise 1.2 (chapter 1)
added solution to exercise 1.3 (chapter 1)