Added travis as build server. Minor changes to abstract unit.

Change Signature of fromBase method.