add assertion for staying inside the locus
rework iteration over sequence (should fix #11)