Updates to environment analyzers. Now handle main env form declarations. Definitely need to refactor and consolidate at sometime. Too much duplicate code.