Made address width configurable

Added set/set addres width using setAddressWidth/getAddressWidth
Exported flush_rx to public.