remove excess whitespace
use static register methods where required

introduce static register method to convert from Dirac form
to vector form

change filter and generate bases methods to be static too