Refactored create and delete

Refactored create and delete.
split server conf into seperate file.