mindock: add main()
mindock: pull out some magic numbers
mindock: support config file