updated linkedin API and code cleanup