move sources to src directory, add -N flag to turn on filter by Ns, fix small bugs