updated readme, fixed block scope