Changed the return of the function to return null on err; Updated readme