Corrected few compile errors and set up for eclipse