added inches support, better support for multiple G on the same line