finished alpha - fixed some bugs and constants and algorythms