added Install. renamed internal functions.