Changed to a better license and some minor buggy features on reading file