Added -n option for lines

Added the `-n` option for amount of lines.

I added `stdio` for easy parsing of options. If you're ok with it, I'd like to also update the code to have the name and log as named parameters as well as "regular ones".

Cheers!