Added some doc headers
Deap modifications of database, added constraints, solve #40