fixed various bugs and added features
fixed repo