Fixed bugs. Rearranged save/load formats. Added relative imports to nosetest.