add license, dependencies to readme, define code in a function