Several Fixes

Fixed memory leaks, Linux build warnings, help message.