Updated .gitignore and also added solutions to two problems.