Kernel lock for executing quasi task added. Fixed line endings and started fixing all formatting.