fixed bug in controller methods
updated readme for the new code