closes #109 - adds support for file inputs