Bugfix for multiple userpaths
Bugfix for a change in error identifier in 2014a
Added generic mean and error functions
Gets the next filename in a series