adding readme and fixing onload bug