moved template class implementation to .hpp files
removed useless files