updated w/ code samples and fixed app