Separeted the functions into individual files, added functions to create animaitons, added heterogenity spatial contribuition and functions to create profiles