DOC: .gitignore; BUG: should check class of input