Added gitignore file, refactored addShape method to support collections