Cleanup

Removed warnings in compile and dialyzer