code fixes, README filled in