FINAL COMMIT

tHIS IS  the final working version of rembrain