Done implementing sieving strategy + bugfixes + comments.