adding basic assetic files
major reorganisation of code