updated training scripts

classes is now global var, also remove dropout and local some vars