Writes Properties file