Squashed commit of the following:

commit d1d85fa90d6e44e6abce8a2e3b5df6b9a6f0a294
Author: Jelle De Loecker <jelle@kipdola.be>
Date:   Sun Oct 13 02:15:42 2013 +0200

    Clean up code and add documentation. Version 0.0.1

commit 1f0be6098f0d64dcd42d7f14dee0e7a7b22817a7
Author: Jelle <jelle@codedor.be>
Date:   Fri Oct 11 16:00:51 2013 +0200

    Remove debug line

commit 3785d4ae43f74d3642131c146fd71b1b0067ab90
Author: Jelle <jelle@codedor.be>
Date:   Thu Oct 10 19:39:25 2013 +0200

    Only use prototype from now one. Functions do not get remade on instancing