Mixed up delete and put
Small fixes and create directory for put