fixing some functionality issues, adding documentation