Update WAnalyzerS.java

Optimiating the code (to not read the text in every method) and changing name of variables