minor bugs fixed, cli working, use strict everywhere