implemented write, minor other changes
deleted extraneous file