added .gitignore configuration.
fixed bugs.