Build system improved; core library template added