Major revamp of the project

Now largely based on the source code of bash-4.3