added modification for write(), added headers directory, put author notation on most files, other changes