Fix bug on polygonal selection, remove junk files and cleannthe code. close #12 close #13