Updated analysis files and added new function files