restructured, namespaced, removed class forward declarations, and started on mhd