MAINT: added myself to the credits
BUG: generalized to handle input as StringIO or file