Added licence. Added main()
Updated readme