Fixed formatting errors in functions and terminals. Add fitness.py