Add -Wextra
Fix memory leak
Bux fixes and new features