file ecncoding started. Methods created, need to make actual encoding.