Fix mistype
Fix duplicate functions
Delete duplicate process and improve performance

Fixes #17
Fix duplicates