added support for character devices,
added new fromFormat command to specify input format

Signed-off-by: Sean Nicholls <seannicholls@gmail.com>