added usage info and os detection