Added MLP training code. Modified cleanup scripts.