refactored into non-static
added license
added readme