In this Act, unless the contrary intention appears costs means expenses properly incurred by a defendant but does not include any expenses incurred by the State, Commonwealth, or any other body by way of legal aid to the defendant;defendant means any person charged with an offence;public officer means any person employed in any capacity in the public service of the State, and includes (a) a police officer; and(b) a probation officer;State authority means any person or body of persons, whether incorporate or unincorporate, constituted, or established by or under any Act, or appointed by the Governor under the authority of any Act, to administer or control any department, business, or undertaking on behalf of the State.