initial commit, based on the original code made in 2013 for the Castilla Project