added some documentation and stubed out a save function