Changed API readme and made API a bit safer.