hi all , 
am thinking to start selling some erp services , am looking to build a software that can be customized for customers and sell them the service , 
there is 2 challenges here am face while making some research, 
1- companies keep asking about the souce code if you own it . 
2- some companies prefer to take a copy from source code once the application is deployed to their server . 
does apex will help regarding above points ? 
thanks