bug fixes

corrected reading into array from XML
also separated amp and freq active bits