many fixes, README added, addHeaders function