Added compilation script and updated introduction

Now the example should be (nearly) fully self-contained.
If you want to compile it correctly, you only need to do everything that
is written in either the README or in the file itself.