updated documentation url and added main()