Code update

Add main and main configuration