added usage, fixed bug