mode argument for Fs function can be either a string or integer (closes #30, ping @ousado)