Fixed bug handling milliseconds in Giniheader and other minor changes