updated read me
fixed readme's
deleted first attempts
function writes the file upon publishing