added readme, simplified api