move ad-codes.php to /inc directory and perform some general cleanup