64 bit support and started to add preferences