Code and documentation of my Master Thesis, you can find the latest version of the report at http://davidrozas.com/pub/Rozas2009d.pdf