Added .gitignore
Removed leftover function declaration.
Filled in some function definitions.