added documentation from http://www.nitrc.org, updated source code to latest version from FieldTrip