Same major optimisation on the lem1803

Code cleaned/Removed all warnings