Updated readme, changed API