Separated license, readme and function prototypes. Also added gitignore