slight reorganizations. progress on a*. app compiles but a* not complete