added base code to dynamic web project and fixed package declarations