clean ebin && fixed unused warnings