fixed bug in reading input from stdin
simplified blast input