reverted to scala 2.10. Fixed warnings