Bugfix/fix rspec r0

updated with rspec 3. fixed all warnings and errors.