fixed warnings; added rake task