Copy from desktop

Copied desktop code base to be retooled to mobile