Added -i flag to use stdin as input.
Updated version.
#5 Add test