Create dev main function

Allows wrap reload in dev mode