Some fixes in the transformation routines, first tests using Allegro