Fixed require examples in API section of readme