Working!!!!

Something may fail, but more or less everything is OK :D
Corrected endianess... very funny how i discovered it