Canduit business logic

CC @mlmorg @Raynos 
Might be useful to add some comments in this file.