Added getReadIndex function to Buffer. Updated Arc_Basename function.