Fixed various issues. Added changelog. Extra documentation.