replace empty lines with Ns
fixed issue with shift
fixed opt flag
fixed min_keep parameter
added note about min_keep in readme, fixed makefile