deleted old files
Fixed bug with procedure scope
Added scope test