minor fixes

- add main.$currentThread
- fix constant values
- rename null -> nil
- README++