use pry instead of irb

add check warnings task
fix ruby warnings