Warehouse core

Warehouse core functionality added.