Fixed UBL related code.
Added readme for how to compile.