Cleaned the code a bit : enabled compiler warnings