UPDATE:Add .gitignore and doc string of base class.