Fixed bug in replace function
Fixed a bug and some test cases for split function
Added descriptions for API functions in readme