Added doc note for basename method, removed some inline test code.