major source work done. remaining compile errors and testing.