Add input files

This code addresses issues #82 and #7 

@rpanah, would you please review this?
look at the comment on line 228.