working and intergrated code

added local libraries