Code organized, optimized for google glass, and deleted unnecesary functions