Compiler warnings fixed & comments added