cleanup
removed internal functions, added installation