Added an else statement to check

Check is used to ensure that the loop info for the current loop exists. If it doesnt, the loop is skipped. The else statement displays a warning stating the same.
Moved call to getIndexElimSet

The call was moved before code generation for for statements.
Modifed loop generation.

Added a new method loopStmtCodeGen. The method takes as parameters required to generate code for both for and parallel for.