Added ^ to automatic_differentiation. Cleaned up the file