First commit of code leftovers. will be fixed.