Move function to their associated classes.
Add gitignore.
Remove deprecated functions.