Added upload functionality and first rspec test