Implemented serialziable for all classes that need it (hopefully).