updated refs, fixed bug
removed uneccessary files