made lock conditions in AWSGUI easier and fixed javadoc