initial commit for retail

core functionality of retail template complete