Bugs fixed, lwcond implementation

Modules: mutex added