Added library, main program and setup