minor changes

separate functions into different files and updated description